package richinfo.delivery.bean;

public class MemcachedInfo extends BaseInfo {

	//服务器列表
	private String[] servers;
	//权重
	private Integer[] weights;
	//初始连接数
	private int initConn;
	//最大连接数
	private int maxConn;
	//最小连接数
	private int minConn;
	//最大处理时间
	private int maxIdle;
	//最大维护休眠时间
	private int maintSleep;
	//nagle算法
	private boolean nagle;
	//tcp超时时间
	private int socketTimeOut;
	//tcp连接时间
	private int socketConnTimeOut;
	//是否压缩
	private boolean enableCompress;
	//超指定大小压缩
	private long thresholdCompress;
	//基本类型表示为字符串
	private boolean isPrimitiveAsString;
	
	public String[] getServers() {
		return servers;
	}
	public void setServers(String[] servers) {
		this.servers = servers;
	}
	public Integer[] getWeights() {
		return weights;
	}
	public void setWeights(Integer[] weights) {
		this.weights = weights;
	}
	public int getInitConn() {
		return initConn;
	}
	public void setInitConn(int initConn) {
		this.initConn = initConn;
	}
	public int getMaxConn() {
		return maxConn;
	}
	public void setMaxConn(int maxConn) {
		this.maxConn = maxConn;
	}
	public int getMinConn() {
		return minConn;
	}
	public void setMinConn(int minConn) {
		this.minConn = minConn;
	}
	public int getMaxIdle() {
		return maxIdle;
	}
	public void setMaxIdle(int maxIdle) {
		this.maxIdle = maxIdle;
	}
	public int getMaintSleep() {
		return maintSleep;
	}
	public void setMaintSleep(int maintSleep) {
		this.maintSleep = maintSleep;
	}
	public boolean isNagle() {
		return nagle;
	}
	public void setNagle(boolean nagle) {
		this.nagle = nagle;
	}
	public int getSocketTimeOut() {
		return socketTimeOut;
	}
	public void setSocketTimeOut(int socketTimeOut) {
		this.socketTimeOut = socketTimeOut;
	}
	public int getSocketConnTimeOut() {
		return socketConnTimeOut;
	}
	public void setSocketConnTimeOut(int socketConnTimeOut) {
		this.socketConnTimeOut = socketConnTimeOut;
	}
	public boolean isEnableCompress() {
		return enableCompress;
	}
	public void setEnableCompress(boolean enableCompress) {
		this.enableCompress = enableCompress;
	}
	public long getThresholdCompress() {
		return thresholdCompress;
	}
	public void setThresholdCompress(long thresholdCompress) {
		this.thresholdCompress = thresholdCompress;
	}
	public boolean isPrimitiveAsString() {
		return isPrimitiveAsString;
	}
	public void setPrimitiveAsString(boolean isPrimitiveAsString) {
		this.isPrimitiveAsString = isPrimitiveAsString;
	}
	
}
